import router from './index';
const fileName = 'project2'
let activeRoute = [
  {
    path: '/project',
    meta: { title: '项目列表', noCache: false },
    component: (resolve) => require(['@/views/project'], resolve),
  },{
    path: '/project2',
    meta: { title: '项目列表2', noCache: false },
    component: (resolve) => require([`@/views/project/${fileName}`], resolve),
  }
]

router.addRoutes(activeRoute)
console.log(router);